import { API, BaseModel } from '@/services/model/baseModel';
import config from '@/utils/config';
import { request } from '@/utils/http';

/**
 * 反馈类型
 * @returns res
 */
const getFeedbackType = () => {
  return request.get<API<Array<BaseModel>>>(config.url.feedback_type);
};

/**
 * 提交反馈意见
 * @returns res
 */
const saveFeedbackType = (param: any) => {
  return request.post<API<Array<BaseModel>>>(config.url.feedback_save, param);
};

export { getFeedbackType, saveFeedbackType };
